package com.his.dao.mapper;

import com.his.dao.domain.Do.SelectAllRegistrationDo;
import com.his.dao.domain.entity.Registration;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fall
 * @since 2022-11-28
 */
@Mapper
public interface RegistrationMapper extends BaseMapper<Registration> {
   List<Object> selectAll(Integer doctorId, Integer patientId, Integer hospitalId, Integer isAppointment, Integer isComplete, Integer isPayment,
                          String startTime, String endTime, Integer page, Integer pageSize);
   Long selectAllCount(Integer doctorId, Integer patientId, Integer hospitalId, Integer isAppointment, Integer isComplete, Integer isPayment,
                       String startTime, String endTime);

   List<Object> selectAllDoctor(Integer doctorId, Integer patientId, Integer hospitalId,
                                 String startTime, String endTime, Integer page, Integer pageSize);
   Long selectAllCountDoctor(Integer doctorId, Integer patientId, Integer hospitalId,
                        String startTime, String endTime);

   SelectAllRegistrationDo selectLast(Integer doctorId, Integer patientId, Integer isAppointment, Integer isComplete, Integer isPayment, String date);

   List<Object> selectPatientAll(Integer patientId, Integer page, Integer pageSize);

   List<Object> selectHistoryAll(Integer patientId, Integer page, Integer pageSize);

   Object selectRegistrationDetails(Integer registrationId);
}
